package org.n.shop.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.n.shop.domain.dto.LoginDto;
import org.n.shop.domain.entity.User;

@Mapper
public interface UserMapper {
    /**
     * 登录查询
     * @param user
     * @return
     */
    User login(User user);

    User userinfo(@Param("userId") int userId);

    int update(User user);

    int updateAvatar(User user);
}
